package uf.audit.db.support;

import org.apache.log4j.Logger;

import uf.audit.db.User;

import com.jfinal.plugin.activerecord.ActiveRecordPlugin;

/**
 * 实体注册
 * 
 * @author sunny
 *
 */
public class EntityRegister {
	private static final Logger log = Logger.getLogger(EntityRegister.class);
	private ActiveRecordPlugin arpPlugin;

	public EntityRegister(ActiveRecordPlugin arp) {
		arpPlugin = arp;
	}

	public void regist() {
		log.info("entity regist");
		arpPlugin.addMapping("sjuser", "id", User.class);
	}
}
